home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 11.dir / 00046_Text_text06.txt < prev    next >
Text File  |  2000-10-01  |  1KB  |  19 lines

  1. Establishing a Field
  2. We will first establish the field that specifies the relationships between the cells. 
  3.  
  4. As you can see from the diagram, the lengths of a total of six edges, i.e. three vertical and three horizontal, specify the shape of the 3x3 matrix. These are respectively defined as:
  5.  
  6. Horixontal edge lengths:    PX1, PX2, PX3 
  7. Vertical edge lengths:    PY1, PY2, PY3
  8.  
  9. In addition, these are assumed to be continuously moving, and the speeds of change of the edge lengths are: 
  10.  
  11. Speeds of change of the horizontal edge lengths:    VX1, VX2, VX3 
  12. Speeds of change of the vertical edge lengths:    VY1, VY2, VY3
  13.  
  14. These are the basic variables. The dynamic relationship between the edge lengths and their speeds is determined within Flash ActionScript, and you need do nothing more than create an arrangement in which this is reflected by the sizes of the cells.
  15. The frame configuration in the movie is extremely simple, as you can see from the diagram. IΓÇÖm going to focus on the action layer. In frame 1, the initial variables are set. Frame 2 holds the main process that weΓÇÖve talked about and frame 3 simply jumps back to frame 2
  16.  
  17. So letΓÇÖs look at the main processing in frame 2. There are three phases. The first controls the speed of change in the lengths of the edges of the cells (VX1 to 3, VY1 to 3), the second controls the lengths of the edges of the cells (PX1 to 3, PY1 to 3), and phase three alters and displays the sizes of the cells.
  18.  
  19.